﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entities;
using DataAccessLayer;

namespace BusinessLogicLayer
{
    public class ThamSoBLL
    {
        private ThamSoDAL dal;

        public ThamSoBLL()
        {
            try
            {
                dal = new ThamSoDAL();
            }
            catch { throw; }
        }

        public List<ThamSoEntity> getAll()
        {
            try
            {
                return dal.getAll();
            }
            catch { throw; }
        }

        public ThamSoEntity getByTenThamSo(string _name)
        {
            try
            {
                return dal.getByTenThamSo(_name);
            }
            catch { throw; }
        }

        public int modifyThamSo(ThamSoEntity _obj)
        {
            try
            {
                return dal.modifyThamSo(_obj);
            }
            catch { throw; }
        }
    }
}
